package utils

import (
	"math/rand"
	"time"
)

func Licensing() []int {
	card := make([]int, CardNums)

	rand.New(rand.NewSource(time.Now().UnixNano()))
	for i := 1; i <= CardNums; i++ {
		random := rand.Intn(CardNums)
		for card[random] != 0 {
			random++
			if random >= CardNums {
				random = random % CardNums
			}
		}
		card[random] = i
	}
	return card
}
